Refunding Transaction
Details
URL : <base_url>/giftcards/transaction/refund
Method : POST
Authentication required : YES
Post body type: Form Data
Request parameters
In the request URL, provide the following parameters in the body of the request.
Parameter | Type | Example | Description |
---|---|---|---|
id | integer | 1234 | Id of transaction |
amount | numeric | 2399.33 | Amount to refund |
reference_number | string | 15673883 | External identifier |
Success Response
Code : 200 OK
Content :
{
"data": {
"transaction": {
"id": 77756,
"refunded_amount": "800",
"activity_id": 77762
}
}
}
Error Responses
Condition : Incorrect code.
Code : 400 BAD REQUEST
Content :
{
"success": false,
"message": "Invalid transaction or already refunded"
}